﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SW.Model
{
    /// <summary>
    /// 基础列表
    /// </summary>
    /// <typeparam name="T">数据类型</typeparam>
    public class ModelList<T> : List<T>
    {
        private int allCount;

        /// <summary>
        /// 数据总条数
        /// </summary>
        public int AllCount
        {
            get { return allCount; }
            set { allCount = value; }
        }

        /// <summary>
        /// 创建数据集
        /// </summary>
        public ModelList()
        {

        }

        /// <summary>
        /// 创建数据集
        /// </summary>
        /// <param name="capacity">新列表最初可以存储的元素数。</param>
        public ModelList(int capacity)
            : base(capacity)
        {

        }

        /// <summary>
        /// 创建数据集
        /// </summary>
        /// <param name="collection">一个集合，其元素被复制到新列表中。</param>
        public ModelList(IEnumerable<T> collection)
            : base(collection)
        {

        }
    }
}
